//
//  SinaLabel.m
//  evidenceGather
//
//  Created by 王继伟 on 13-8-29.
//  Copyright (c) 2013年 无. All rights reserved.
//

#import "SinaLabel.h"
#import "MyLabel.h"

@implementation SinaLabel

@synthesize textLabel;
@synthesize hintLabel;

  

- (id)initSinaLabel:(CGRect)frame titleText:(NSString *) titleText count:(int) count
{
    self=[super initWithFrame:frame];
    int fontSize=22.0;
    
    textLabel=[[MyLabel alloc] init];
    textLabel.font = [UIFont boldSystemFontOfSize:fontSize];
    NSString * labelTitle=titleText;
    CGSize size = [labelTitle sizeWithFont:textLabel.font constrainedToSize:CGSizeMake(MAXFLOAT, textLabel.frame.size.height)];
    [textLabel setFrame:CGRectMake(0, 0, size.width,frame.size.height)];
    textLabel.text=labelTitle;
    textLabel.adjustsFontSizeToFitWidth=YES;
    textLabel.backgroundColor=[UIColor clearColor];
    
    [self addSubview:textLabel];
    
//    hintLabel=[[MyLabel alloc] initWithFrame:CGRectMake(size.width+5, 3, 20,20)];
//    UIImage *image =[UIImage imageNamed:@"number-icon_bg.png"];
//    [hintLabel setBackgroundColor:[UIColor colorWithPatternImage:image]];
//    hintLabel.textColor=[UIColor whiteColor];
//   
//    hintLabel.delegate=self;
//    hintLabel.text=[NSString stringWithFormat:@"  %d",count];
//    [self addSubview:hintLabel];
    
         
    return self;
}

 

@end
